<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE>
<html>
  <head>
    
    <title>我的账户-钱包管理</title>
	<%@include file="/WEB-INF/base/commRoot.jsp"%>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="/css/account.css" rel="stylesheet" type="text/css" />
	<link href="/css/public.css" rel="stylesheet" type="text/css" />
	<link href="/css/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/js/jquery-1.11.1.min.js"></script>
	<style type="text/css">
  .wallet_manage_taotal dl {overflow: hidden;}
.wallet_manage_taotal .dl_f {width: 145px;}
.account_right .wallet_manage_taotal b {font-size: 20px;}  
.account_right .wallet_manage_taotal .dl_t {width: 122px;}
.account_right .wallet_manage_taotal .dl_f {width: 141px;}

	.table3  th {
	    border-bottom: solid #FFF;
	    font-weight: normal;
	}
	</style>
  </head>
  
  <body>
  <!--header-->
	<jsp:include page="/head.jsp"></jsp:include>
  <!--/header-->
    <div class="main_bg">
    <div class="main_account clearfix">
    	<!--left-->
    	<jsp:include page="/WEB-INF/view/account/myPurse_left.jsp"></jsp:include>
        <!--/left-->
        <!--right-->            
        <div class="account_right r">
            <div class="wallet_manage">
                <h3>惠信钱包管理</h3>
                <div class="wallet_manage_taotal">
                    <dl class="dl_o">
                        <dt>总金额</dt>
                        <dd><b><s:property value="%{formatMoney(fundsVO.cash)}"/></b>&nbsp;元</dd>
                    </dl>
                    <dl class="dl_t">
                        <dt>年化收益率</dt>
                        <%-- <dd><b><s:property value="fundsVO.dataValue"/>%</b></dd> --%>
                        <dd><b><s:property value="%{annualYieldRate(fundsVO.dataValue)}"/>%</b></dd>
                    </dl>
                    <dl class="dl_tt">
                        <dt>昨日收益</dt>
                        <dd><b><s:property value="%{formatMoney(fundsVO.dayProfit)}"/></b>&nbsp;元</dd>
                    </dl>
                    <dl class="dl_f">
                        <dt>总收益</dt>
                        <dd><b><s:property value="%{formatMoney(fundsVO.profit)}"/></b>&nbsp;元</dd>
                    </dl>
                    <a href="<s:url value="/fundRecord_recharge.action"/>" class="btn current">充值</a>
                    <a href="<s:url value="/fundRecord_withdraw.action"/>" class="btn">提现</a>
                    <!-- 钱包暂时屏蔽转账功能  add by wujun 20150603 -->
                    <%-- <a href="<s:url value="/fundRecord_transfer.action"/>" class="btn">转账</a> --%>
                </div>
            </div>
            <form name="queryForm" id="queryForm" action="<s:url value="/account/userWalletAction_qbUserWalletManage.action"/>" method="post">
            <div class="wallet_income">
              <h3>收益详情</h3>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table3" style="font-size: 13px; ">
                  <thead>
                    <tr bgcolor="#eeeef4">
                    <th width="15%" height="50">收益日期</th>
                    <th width="25%" >收益金额（元）</th>
                    <th width="15%">年化收益率（%）</th>
                    <th width="25%">收益计算金额（元）</th>
                    <th width="20%">钱包余额（元）</th>
                  </tr>
                  </thead>
                  <tbody>
                  <s:iterator id="profitRecord" value="#page.records" status="st">
                  	<s:if test="#st.Even">
		               <tr bgcolor="#f5f5f5" height="45">
		            </s:if>
		            <s:else>
		                <tr height="45">
		            </s:else>
        
                      <td align="center"><s:date format="yyyy-MM-dd" name="#profitRecord.profitDate"/></td>
                      <td align="center" class="green">+<s:property value="%{formatMoney(#profitRecord.profit)}"/></td>
                      <td align="center"><s:property value="%{annualYieldRate(#profitRecord.profitRate)}"/></td>
                      <td align="center"><s:property value="%{formatMoney(#profitRecord.effectAmount)}"/></td>
                      <td align="center"><s:property value="%{formatMoney(#profitRecord.afterAccCash)}"/></td>
                    </tr>
                  </s:iterator>
                  </tbody>
                </table>
                <div class="clearfix">
                <p class="page r">
						<%@include file="/WEB-INF/base/page.jsp"%>
						<input type="hidden" id="pageNo" name="pageNo" value="<s:property value="#page.currentPage"/>" />
					</p>
<!--                     <p class="page r"> -->
<!--                         <span class="pre_page"><a href="javascript:void(0);">上一页</a></span> -->
<!--                         <a href="javascript:void(0);" class="page_num active">1</a> -->
<!--                         <a href="javascript:void(0);" class="page_num">2</a> -->
<!--                         <a href="javascript:void(0);" class="page_num">3</a> -->
<!--                         <a href="javascript:void(0);" class="page_num">…</a> -->
<!--                         <a href="javascript:void(0);" class="page_num">10</a> -->
<!--                         <span class="next_page"><a href="javascript:void(0);">下一页</a></span> -->
<!--                   </p> -->
                </div>
    
          </div> 
          </form>       
               
      </div>
        <!--/right-->
    </div>
</div>
<jsp:include page="/footer.jsp"></jsp:include>
  </body>
</html>
